/**
 * 获取网络类型
 * 读到可用网络范围 or 实际现在使用网络
 */
export function getNetWorkType() {
	return new Promise(resolve => {
		wx.getNetworkType({
			success:(res)=>{
				console.log(res);
				resolve({
					networkType: res.networkType
				})
			},
			fail:(err)=>{
				console.log(err);
				resolve("getNetworkType:err")
			}
		});
	})
}
